const state= {
  hasLogin: false,
  userInfo:{}
 }
 
 const mutations= {
  login(state,userInfo) {
   state.hasLogin = true;
   state.userInfo = userInfo;
  },
  logout(state) {
   state.hasLogin = false
   state.userInfo = {}
  }
 }


export default {
  namespaced: true,
  state,
  mutations
}
